package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface CommentService {
    int save(Comment comment);
    int delete(Long userId, ObjectId publishId,Integer commentType);

    //查询动态评论列表
    PageBeanVo findCommentByPage(ObjectId publishId,Integer pageNum,Integer pageSize,Integer commentType);

    //查询消息列表
    PageBeanVo findByPage(Long publishUserId,Integer pageNum,Integer pageSize,Integer commentType);

}
